/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: xiaotutu
 * Date: 2023-08-03
 * Time: 13:50
 */
public class Test {
    public static void main(String[] args) {
        int i = 0;
        while(i<=10) {
            System.out.println(i);
            i++;
        }
    }
    public static void main7(String[] args) {
        System.out.println("\\\"hello\\\"");
        //System.out.println("\\"hello\\"");
        System.out.println("/\"hello/\"");
    }

    public static void main6(String[] args) {
        int day = 1;
        switch(day) {
            case 1:
                System.out.println("星期一");
                break;
            case 2:
                System.out.println("星期二");
                break;
            case 3:
                System.out.println("星期三");
                break;
            case 4:
                System.out.println("星期四");
                break;
            case 5:
                System.out.println("星期五");
                break;
            case 6:
                System.out.println("星期六");
                break;
            case 7:
                System.out.println("星期日");
                break;
            default:
                System.out.println("输入有误");
                break;
        }

    }
    public static void main4(String[] args) {
        System.out.println("1");
        System.out.println("3");
        System.out.println("2");
        int a = 10;
        if(a == 1) {
            System.out.println("a==1");
        }else if(a == 5){
            System.out.println("a == 5");
        }else {
            System.out.println("a != 1 && a != 5");
        }

    }

    //判断一个年是否是闰年
    public static void main5(String[] args) {
        int y = 1996;
        if(y % 100 == 0) {
            //世纪闰年
            if(y % 400 == 0) {
                System.out.println("是世纪闰年");
            }else {
                System.out.println("不是闰年");
            }
        }else {
            //普通闰年
            if(y % 4 == 0) {
                System.out.println("是普通闰年");
            }else {
                System.out.println("不是闰年");
            }
        }
    }
    public static void main3(String[] args) {
        /*int a = 10;
        int b = 20;
        int max = (a > b ? a : b);
        System.out.println(max);*/
        boolean flg2 = true == true ? false : (true == true ? true : false);
        System.out.println(flg2);
        int a = 10;
        int b = 20;
        double c = a > b? 1 : 2.0;
        System.out.println(c);

        int d = (a + b) * 5;
    }

    public static void main2(String[] args) {
        int a = 2;
        long b = 10L;
        b += a;
        System.out.println(b);
    }
    /*int a = 1;
    long b = 20l;
    //b += a;
    b += 1;*/
    public static void main1(String[] args) {
        byte g = (byte)128;
        System.out.println(g);
    }

}
